
#ifndef UI_LIBRARYWIDGET_H
#define UI_LIBRARYWIDGET_H

#include "ui_ui_librarywidget.h"
#include "..\gui_export.h"

class GUI_EXPORT UI_LibraryWidget : public QWidget, public Ui::UI_LibraryWidget
{
    Q_OBJECT

public:
    UI_LibraryWidget(QWidget* parent = 0, const char* name = 0, Qt::WindowFlags fl = 0);
    ~UI_LibraryWidget();

    virtual QString getItemDir( Q3ListViewItem * item );
    virtual QString getItemPath( Q3IconViewItem * item );
    virtual QPixmap getPixmap( const QString & dir, const QString & dxfFile, const QString & dxfPath );
    virtual QString getPathToPixmap( const QString & dir, const QString & dxfFile, const QString & dxfPath );

public slots:
    virtual void setActionHandler( WF_ActionHandler * ah );
    virtual void keyPressEvent( QKeyEvent * e );
    virtual void insert();
    virtual void appendTree( UI_ListViewItem * item, QString directory );
    virtual void updatePreview( Q3ListViewItem * item );

signals:
    void escape();

protected slots:
    virtual void languageChange();

private:
    WF_ActionHandler* actionHandler;

    void init();

};

#endif // QG_LIBRARYWIDGET_H
